package operations;

import book.Booklist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class DisplayOperation implements IOperation{
    @Override
    public void work(Booklist booklist) {
        //打印图书
        System.out.println("显示图书！");
        for (int i = 0; i < booklist.getUsedSize(); i++) {
            System.out.println(booklist.getBooks()[i]);
        }
    }
}
